package com.zz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {


    @RequestMapping("/{path}/{page}.html")
    public String toPage2(@PathVariable String path, @PathVariable String page) {
        System.out.println("path = " + path + ", page = " + page);
        return path + "/" + page;
    }
}
